﻿using System.Collections;
using UnityEngine;

namespace Pumpkin.FrameBase
{
    public class CoroutineManager : MonoBehaviour
    {
        private static CoroutineManager ins;
        public static CoroutineManager Instance
        {
            get { return ins; }
        }

        public static void DoCoroutine(IEnumerator coroutine)
        {
            ins.StartCoroutine(coroutine);
        }

        void Awake()
        {
            ins = this;
        }
    }
}
